<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>购物车</title>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/gwc.css"/>
		<script type="text/javascript" src='<?php echo __PUBLIC__?>/jquery-1.7.2.min.js'></script>
		<script type="text/javascript">
		$(function(){
			$('#content .pay span').click(function() {
				$(this).addClass('payon').siblings().removeClass('payon');
			});
			$('#content .delivery .inland-addr .warn1').click(function() {
				$('.addr-form').show();
			});
		});
		</script>
	</head>
	<body>
		<div class="wrapper">
			<div class="header">
				<a class="logo" title="凡客诚品" target="_blank">
                <img alt="凡客诚品" src="<?php echo __PUBLIC__?>/Home/img/vancl-logo.png">
                </a>
                <div class="help-center">
                   <a href="http://help.vancl.com/" target="_blank">帮助中心</a>
                </div>
                <div class="account">
                   <p>您好，<span class="username"></span><a>退出登录</a>|<a>更换用户</a>
                   </p>
                 </div>
			</div>
			<div id="location" style="background-position: 0px -28px;">        
    			<span>1.我的购物车</span><em style="color: #FFFFFF;">2.填写核对信息单</em><span>3.成功提交订单</span>
            </div>
            <div id="content">
            	<div class="delivery">
            		<h3 class="delivery-title addr-hd-new">配送方式：</h3>
            		<section class="inland-addr">
            			<?php if(empty($hudata)){ ?> 
            				<div class="warn1">请先确认“收货地址”</div>
            				<?php }else{ ?>
            				<div class="newaddrdiv" style=" width: 194px;">
	            				<?php foreach ($hudata as $v){?>
	            				<p><?php echo $v['huname']?></p>
	            				<p><?php echo $v['huphone']?></p>
	            				<p><?php echo $v['huurl']?></p>
	            				<?php }?>
            				</div>
            				<?php } ?>
					   
					        <li class="delivery-explanation clearfix"><em>声明：</em>
					            <div>
					                <p>1.&nbsp;<a class="oprate" target="_blank" href="http://help.vancl.com/category/transfer">查看货到付款配送范围</a></p>
					                <p>2.&nbsp;送货时间：早 8:30至 晚7:30</p>
					                3.&nbsp;我们会努力按照您选择的时间进行配送，但因天气、交通等因素影响，您的订单有可能会有延误现象，请您谅解！
					            </div>
					        </li>
					        <ul class="addr-form">
					        	<form action="" method="post">
					        	<li>
					        		<span>收货人：</span>
					        		<input type="text" name="huname" id="" value="" style="margin-left: 12px;"/></li>
					        	<li>
					        		<span>详细地址：</span>
					        		<input type="text" name="huurl" id="" value="" style="width: 310px;"/>
					        	</li>
					        	<li>
					        		<span>邮政编码：</span>
					        		<input type="number" name="huzip" id="" value="" /></li>
					        	</li>
					        	<li>
					        		<span>手机：</span>
					        		<input type="text" name="huphone" value="" style="margin-left: 23px;"/>
					        	</li>
					        	<li>
					        		<input type="submit" name="" id="arf" value="保存并配送到这个地址" />
					        	</li>
					        	</form>
					        </ul>
					</section>
            	</div>
            	<div id="pay" class="pay noborder clearfix">
                	<div class="pay-hd pay-title">
			        <h3 class="pay-title">支付方式：</h3>
			        </div>    
					<span class="no-addr-or-delivery-error warn1 payon" style="margin:20px 0 10px 80px">在线支付</span>
					<span class="no-addr-or-delivery-error warn1" style="margin:20px 0 10px 30px">货到付款</span>
					<div id="points" class="points">
						<div class="delivery-hd clearfix" style="margin-top: 15px;">
							<input id="points-radio" name="gift-points" style="float: left;margin-top: 3px;" paytype="2" type="checkbox">
							<h3 class="points-titles" data-has-delivery="true">使用积分：</h3> <span>使用0积分，抵现<em style="color:#b81c22">0元</em>。</span>
						</div> 
					</div>
					<div class="lp">
						<input id="gift-card-radio" name="gift-points" style="float: left;margin-top: 3px;" paytype="1" type="checkbox"> 
					    <h3 class="gift-card-title">使用礼品卡：</h3>
					</div>
				</div>
				
				<span class="blank10"></span>
			<form action="" method="post" class="tjd">
				<?php if(!empty($hudata[0])){ ?> 
            	<input type="hidden" name="oname" id="" value="<?php echo $hudata[0]['huname']?>" />
            	<input type="hidden" name="ourl" id="" value="<?php echo $hudata[0]['huurl']?>" />			
            	<?php } ?>
					<div class="additional-info">
						<h4 class="collapse">开发票</h4>
					</div>

				<div class="order-info-head">
						<h3 class="clearfix">
							<span class="order-list-title">商品清单</span>
							<a href="" class="a1">请先确认“收货地址”或“配送方式”</a>
							<a name="sp_cart_gift_back_cart" class="back2cart track" href="http://shopping.vancl.com/mycart">
							 回到购物车，修改产品&gt;&gt;</a>  
							</h3></div>
					<h5 class="order-list-head">
					     订单1<span class="store-house-info">将从<em></em>发出，预计发货后<em>1天</em>内送达</span>
					</h5>
					<div class="order-list order-list2 clearfix">
						<table>
							<thead>
								<tr>
									<th>商品名称</th>
									<th>尺码</th>
									<th style="display: none">赠送积分</th>
									<th>单价</th>
									<th>数量</th>
									<th>优惠</th>
									<th>小计</th>
									</tr>
							</thead>
							<?php foreach ($data['goods'] as $k=>$v){?>
							<tbody>
								<tr>
									<td class="name">
										<a><?php echo $v['name']?></a>
									</td>
									<td class="size"><?php echo $v['size']?>
									</td>
									<td class="point" style="display: none">59 分
									</td>
									<td class="price">
										￥<?php echo $v['price']?>
									</td>
									<td class="qty"><?php echo $v['num']?>
									</td>
									<td class="preferential">
										<div class="discount-cx">
											-
										</div>
									</td>
									<td class="sub-total">
										￥<?php echo $v['num']*$v['price']?>
									</td>
								</tr>
							</tbody>
							<?php }?>
						</table>
						<div class="order-amount">
							商品金额小计:<span><?php echo $data['total']?></span> &nbsp;&nbsp;+&nbsp;&nbsp;运费:<span>￥0.00</span> &nbsp;&nbsp;=&nbsp;&nbsp;应付:
							<em><?php echo $data['total']?></em>
						</div>
					</div>
					<ul class="all-amount">
				    <li><em>已支付：<label id="price-total" data-price-total="0.00">￥0.00</label>,您还需支付：<label id="price-total" data-price-total="59.00">￥<?php echo $data['total']?></label></em></li>
					</ul>
					<div>
					<input type="hidden" name="oprice" id="" value="<?php echo $data['total']?>" />
					<?php foreach ($data['goods'] as $v){?>
            		<input type="hidden" name="olnum[]" id="" value="<?php echo $v['num']?>" />
            		<input type="hidden" name="goods_gid[]" id="" value="<?php echo $v['id']?>" />
            		<input type="hidden" name="olprice[]" id="" value="<?php echo $v['price']?>" />
            		<?php }?>	
					</div>
					<div class="order-submit clearfix">
					    <input id="submit-order-btn" value="提交订单" class="submit-order-btn track" type="submit">
					    <span class="warn oprate"></span>
					</div>
			</form>
		<span class="blank10"></span>
		<div id="footer">
                    <p class="copyrights">Copyright 2007 - 2015 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11010102000579号 出版物经营许可证新出发京批字第直110138号</p>
                    <p class="certs">
                        <a class="ectrustprc" title="中国电子商务诚信单位" href="http://www.ectrustprc.org.cn/seal/splash/1000020.htm" target="_blank">
                            <img alt="中国电子商务诚信单位" src="//ssl.vanclimg.com/shopping/cert-redlogo.gif">
                        </a>
                        <span class="costumeorg" title="中国服装协会会员单位">
                            <img alt="中国服装协会会员单位" src="//ssl.vanclimg.com/shopping/cert-costumeorg.gif">
                        </span>
                        <a class="online315" href="http://www.315online.com.cn/member/315090053.html" title="网上交易保障中心" target="_blank">
                            <img alt="网上交易保障中心" src="//ssl.vanclimg.com/shopping/cert-wsjybzzx.gif">
                        </a>
                    </p>
            </div>
	</body>
</html>
